import Vue from 'vue'
import App from './App'
import store from "@/store/index"
import navBar from "@/components/navBar/navBar"

import utils from '@/utils/utils'
import Tim from '@/components/tim/index.js'
import * as Common from './config/common.js'
Vue.prototype.$utils = utils

// //引入友盟
// import uma from '@/components/wx-umtrack/uma.js'
// Vue.use(uma)

// 火山引擎
// import datarangers from '@/components/wx-umtrack/datarangers.js'
// Vue.use(datarangers)

// GrowingIO
// #ifdef MP-WEIXIN
var gio = require("@/components/GrowingIO/gio-minp/index.js").default;
var gioConfig = require("@/components/GrowingIO/gioConfig.js").default;
gio('setConfig', gioConfig);
// #endif

// var gio = require("./components/GrowingIO/gio-minp/index.js").default;
// gio('init', '9e57f7f257a0ae07', 'wxd3d1e9d7ee8553f9', {
// 	version: '2.0.0',
// 	vue: Vue
// });
import navBars from "@/components/navBars"; //自定义头部
Vue.component("nav-bars", navBars);


//封装页面跳转方法，注入原型
// import * as topage from "./utils/topage.js";
// Vue.prototype.$page = topage
// uView
import uView from "@/plugins/uview-ui";
Vue.use(uView);

//静态文件公共路径
import URL from '@/config/url'
Vue.prototype.$static = URL.STATIC

//文件公共配置
import ENV from '@/config/url'
Vue.prototype.$env = ENV

Vue.use(Tim);
Vue.config.productionTip = false
Vue.prototype.$common = Common;


App.mpType = 'app'
const app = new Vue({
	...App,
	store,
	components: {
		'nav-bar': navBar,
	}
})
app.$mount()
